<app-header title="金币提现" right="提现记录" url="/withdrawrecord"></app-header>

<ion-content>


  <div class="mine w96">

    <div class="h_title">
      <span class="s_span">提现到银行卡</span>
    </div>

    <div class="withdraw_h">
      <h3>
        <ion-icon name="card-outline"></ion-icon>
        <span *ngIf="bankCard">{{bank}} ****{{bankCard.substr(bankCard.length - 4)}}</span>
      </h3>
      <p>最小提现金额为100元，手续费5%</p>
    </div>

      <div class="pool_bg" *ngIf="userInfo">
        <h4>提现金额：</h4>
        <input class="input" type="number" [placeholder]="userInfo.coin" [(ngModel)]="money" (blur)="onblur()">
        <div class="df_ja">
          <p>当前金币余额 {{userInfo.coin}}</p>
          <span (click)="onTX()">全部提现</span>
        </div>
      </div>
    <button class="button buttons" style="width: 90%;" (click)="confirm()">确认转出</button>

  </div>

  <!-- 确定以及输入密码 -->
  <div class="password-inp" *ngIf="pwflag">
    <div class="pass-h">
      <div class="pass-head">
        <ion-icon name="close-outline"></ion-icon>
        <h3>请输入密码</h3>
        <ion-icon (click)="closepw()" class="block" name="close-outline"></ion-icon>
      </div>

      <code-input
              (codeChanged)="onCodeChanged($event)"
              (codeCompleted)="onCodeCompleted($event)">
    </code-input>
    </div>
  </div>

  <!-- <app-lodding [falg]='show'></app-lodding> -->
  
</ion-content>
